﻿using MyWebApiTest.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace MyWebApiTest.Controllers
{
    [RoutePrefix("api/Student")]
    public class StudentController : ApiController
    {
        //public Student PostStudent([FromBody]Student student)
        //{
        //    return student;
        //}

        [HttpPost]
        [Route("name")]
        public string StudentName([FromBody]object name)
        {
            return name.ToString();
        }
    }
}
